package com.ssh.entity;

import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Entity
public class TaskBrand extends BaseEntity{
	private static final long serialVersionUID = 6002548593623858681L;
	private Date startDate;
	private Date endDate;
	private Date createDate;
	private Integer del;
	private Task task;
	private Brand  brand;

	public TaskBrand() {
	}
	
	@ManyToOne(cascade ={CascadeType.ALL},fetch = FetchType.LAZY)       
    @JoinColumn(name="taskId") 
	public Task getTask() {
		return task;
	}

	public void setTask(Task task) {
		this.task = task;
	}

	public Date getStartDate() {
		return this.startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public Date getEndDate() {
		return this.endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public Date getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Integer getDel() {
		return this.del;
	}

	public void setDel(Integer del) {
		this.del = del;
	}

	@ManyToOne(cascade ={CascadeType.ALL},fetch = FetchType.LAZY)       
    @JoinColumn(name="brandId")
	public Brand getBrand() {
		return brand;
	}

	public void setBrand(Brand brand) {
		this.brand = brand;
	}
	

}